package io.geekidea.boot.chargeback.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import io.geekidea.boot.chargeback.dto.ChargeBackExcel;
import io.geekidea.boot.chargeback.entity.ChargeBack;
import io.geekidea.boot.chargeback.query.ChargeBackQuery;
import io.geekidea.boot.chargeback.vo.ChargeBackVo;
import io.geekidea.boot.otherstores.query.total;
import io.geekidea.boot.salesslip.entity.Salesslip;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 *
 * 退单管理接口
 *
 * @since 2023-12-7
 */
@Mapper
public interface ChargeBackMapper extends BaseMapper<ChargeBack> {

    /**
     * 退单分页列表
     * @param chargeBackQuery
     * @return
     */
    List<ChargeBack> chargeBackLick(ChargeBackQuery chargeBackQuery);

    /**
     * 分页
     * @param chargeBackQuery
     * @return
     */
    total getTotal(ChargeBackQuery chargeBackQuery);


//    @Insert("insert into tb_chargeback(numbers, orderid, order_types, order_subtype, order_amount, refundamount, areaid, storesid, prepared_by, createdtime)values (#{},#{},#{},#{},#{},#{},#{},#{},#{},#{})")
//    int addChargeById(ChargeBack chargeBack);

    List<ChargeBackExcel> DownloadList(ChargeBackQuery chargeBackQuery);
}
